#!/bin/sh

CODEBASE_HOME="/home/trond/Code/Mango Web/Mango CMS/Platform"
echo -n "Refreshing Mango libraries..."

echo -n " mango-admin-gui"
cp "${CODEBASE_HOME}/mango-admin-gui/target/mango-admin-gui-1.0-SNAPSHOT.jar" "webroot/WEB-INF/lib/mango-admin-gui.jar"

echo -n " mango-core"
cp "${CODEBASE_HOME}/mango-core/target/mango-core-1.0-SNAPSHOT.jar" "webroot/WEB-INF/lib/mango-core.jar"

echo -n " mango-gui"
cp "${CODEBASE_HOME}/mango-gui/target/mango-gui-1.0-SNAPSHOT.jar" "webroot/WEB-INF/lib/mango-gui.jar"

echo -n " mango-plugin"
cp "${CODEBASE_HOME}/mango-plugin/target/mango-plugin-1.0-SNAPSHOT.jar" "webroot/WEB-INF/lib/mango-plugin.jar"

echo -n " mango-site"
cp "${CODEBASE_HOME}/mango-site/target/mango-site-1.0-SNAPSHOT.jar" "webroot/WEB-INF/lib/mango-site.jar"

echo ""
echo "Done refreshing Mango libraries."
